FROM centos:centos7
# FROM nginx

RUN echo "start build bisheng-jre-8u382-linux-x64"

EXPOSE 9090/tcp
EXPOSE 9090/udp

ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8

WORKDIR /usr/local

ADD ./bisheng-jre-8u382-linux-x64.tar.gz .

RUN mv bisheng-jre1.8.0_382 jre8

ENV JAVA_HOME=/usr/local/jre8
ENV PATH=$JAVA_HOME/bin:$PATH

RUN java -version

COPY app.jar .

RUN echo "================== end =================="

ENTRYPOINT ["java", "-jar",  "app.jar"]

